package cn.tedu._03vehicle.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserRegParam {
    @NotNull(message = "用户名不能为空")//自定义异常提示消息
    @Size(min = 2, max = 14, message = "用户名长度必须在2-10之间")
    @Schema(description = "用户名",  required = true)
    private String username;
    @NotNull(message = "密码不能为空")
    @Schema(description = "密码",  required = true)
    private String password;
    @Schema(description = "邮箱",  required = true)
    private String email;
    @Schema(description = "手机号",  required = true)
    private String phone;
}
